import request from '@/utils/request'
export const getDeviceApi = () => request.get('/device/type')
// 设备查询
export const getDevicPageApi = (params) =>
  request.get(
    `/device/page?current=${params.current}&pageSize=${params.pageSize}&devAlias=${params.devAlias}&isOnline=${params.isOnline}`
    // `/device/page?current=${params.current}&pageSize=${params.pageSize}&devAlias=${params.devAlias}&isOnline=${params.isOnline}`
  )
// 设备历史记录
export const getDeviceSensorApi = (params) =>
  request.get(
    `/deviceSensor/getDeviceSensor?did=${params.did}&type=${params.qsgType}&startTime=${params.startTime}&endTime=${params.endTime}`
  )
